formatFixedDecimals

fun formatFixedDecimals(value: String, decimalChar: Char, numDecimals: Int): String

Formats the given double 0..1.00 as a percentage with the specified number of decimal digits showing.

Return

The provided string with exactly the number of decimal places requested.

Parameters

value

The numeric string as currently formatted.

decimalChar

The decimal character to display.

numDecimals

The number of decimals to force display of.